//
//  NetworkFactory.h
//  kuping
//
//  Created by SUNJUN on 13-3-11.
//  Copyright (c) 2013年 kuping. All rights reserved.
//

#import <Foundation/Foundation.h>

#define TimeOutSeconds 300

@interface NetworkFactory : NSObject{
}

- (void)startPostRequestWithURL:(NSString *)theURL andPostValues:(NSDictionary *)thePostValues andSuccessBlock:(void (^)(NSDictionary *responseJson))completionBlock andFailBlock:(void (^)(NSError *error))failedBlock;


- (void)uploadImageWithURL:(NSString *)theURL withPostValues:(NSDictionary *)thePostValues andData:(NSData *)theData andProgressView:(id)progressView andSuccessBlock:(void (^)(NSDictionary *responseJson))completionBlock andFailBlock:(void (^)(NSError *error))failedBlock;

@end
